home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / File class library / sources / launch.c < prev   
Encoding:
C/C++ Source or Header  |  1994-11-30  |  393 b   |  31 lines  |  [TEXT/KAHL]

  1.  
  2.  
  3. #ifdef _Launch
  4.  
  5. pascal void DoLaunch (StringPtr application, short code);
  6.  
  7.  
  8. pascal void DoLaunch (StringPtr application, short code)
  9. {
  10.     struct
  11.     {
  12.         StringPtr    name;
  13.         short            memoryCode;
  14.         char            parameters[2];
  15.         long            extensionLength;
  16.         short            finderFlags;
  17.         long            launchFlags;
  18.     } data;
  19.     
  20.     
  21.     data.name= application;
  22.     data.launchFlags= code;
  23.     
  24.     asm
  25.     {
  26.         lea        data, A0
  27.         Launch
  28.     }
  29. }
  30.  
  31. #endif